﻿using System;

namespace BGShell
{
    public sealed class BGShellArgumentParser
    {
        private readonly bool _background;

        internal BGShellArgumentParser(String[] args)
        {
            var cmp = StringComparer.OrdinalIgnoreCase;

            if (args != null)
            {
                foreach (var a in args)
                {
                    if (cmp.Equals(a, "-background"))
                    {
                        _background = true;
                    }
                }
            }
        }

        public bool IsBackground
        {
            get { return _background; }
        }
    }
}
